<?php $this->beginContent('application.modules.admin.views.layouts.admin'); ?>
<div class="container">
    <?php if (Yii::app()->user->isSuperuser()) : ?>
        <div class="span-4" style="padding-top:5px;">
        <div style="padding-left:8px; padding-bottom:5px; color:grey"><b><i>Admin Tools</i></b></div>
        <?php
        $this->widget('application.extensions.mydropdownmenu.MMenu', array(
            'type' => 'dropdown-vertical',
            'menus' => array(
                array('label' => 'User', 'url' => array('/index.php/admin'), 'visible' => Yii::app()->user->isSuperuser(), 'subMenus' =>
                    array(
                        array('label' => 'Create User', 'url' => array('/index.php/admin/user/create')),
                        array('label' => 'Manage User', 'url' => array('/index.php/admin/user/admin')),
                    )
                ),
            )
        ));
        ?>
    </div>
    <div class="span-20 last">
        <div id="content">
            <?php echo MyCHtml::flashMessage('success', 'success'); ?>
            <?php echo $content; ?>
        </div><!-- content -->
    </div>
    <?php else: ?>
                <div class="span-24 last">
                    <?php echo MyCHtml::flashMessage('success', 'success'); ?>
                    <div id="content">
            <?php echo $content; ?>
            </div><!-- content -->
        </div>
    <?php endif ?>

            </div>
<?php $this->endContent(); ?>
